package com.bigflexlib.ds.op
{
	import com.bigflexlib.ds.container.zet.IRSet;
	import com.bigflexlib.ds.container.zet.IWSet;

	public class SetFilterOp extends AbstractContainerFilterOp
	{
		
		
		private var oSet:IWSet;
		

		public function SetFilterOp( iSet:IRSet, oSet:IWSet, iFilterFunction:Function )
		{

			this.oSet = oSet;

			super( iSet, oSet, iFilterFunction );
			
		}
		
		
		
		
		override protected function m( e:*, m:int ):void
		{
			if ( m > 0 )
				oSet.add( e );
			else
				oSet.remove( e );
		}



		override public function dispose():void
		{
		
			super.dispose();
			oSet = null;
		
		}		
		
		
	}
	
}